package com.tannm.doan.taskmanager;

import com.tannm.doan.taskmanager.reminder.AlarmService;

import android.content.Context;
import android.content.Intent;
import android.content.BroadcastReceiver;

public class TaskManagerReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		if ((context != null) && (intent != null)) {
			if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
				context.startService(new Intent(context, AlarmService.class));
			}
		}
	}
}
